{include file="public/com_header"}

<body style="padding:10px;">
    <div class="tplay-body-div">
        <fieldset class="layui-elem-field site-demo-button" style="margin-top: 30px;border:0">
        <form id="downloadFileForm" class="layui-form serch" action="{:url('admin/Tools/download')}" target="_blank" method="post">
            <div class="layui-form-item">
                <label class="layui-form-label"> 文件路径 </label>
                <div class="layui-input-inline">
                  <input type="text" name="fileurl" lay-verify="title" autocomplete="off" placeholder="请输入文件Url" class="layui-input" style="width: 500px;">
                </div>
                <!--<button class="layui-btn layui-btn-danger layui-btn-sm" lay-submit="" lay-filter="ImageUrl">立即提交</button>-->
            </div>
            <div class="layui-form-item">
                <div class="layui-input-block">
                    <button class="layui-btn layui-btn-danger layui-btn-sm" lay-submit="" lay-filter="downloadFile">下载文件</button>
                    <button type="reset" class="layui-btn layui-btn-sm layui-btn-primary">重置</button>
                </div>
            </div>
            <!--<div class="layui-form-item" style="float: left;">-->
                <!--<button class="layui-btn layui-btn-danger layui-btn-xm" lay-submit="" lay-filter="serch">导出Excel</button>-->
                <!--&lt;!&ndash;<button class="btn btn-success" type="submit">导出Excel</button>&ndash;&gt;-->
            <!--</div>-->
        </form>
        </fieldset>
        <!--<script>-->
            <!--layui.use(['layer', 'form'], function() {-->
                <!--var layer = layui.layer,-->
                    <!--$ = layui.jquery,-->
                    <!--form = layui.form;-->
                <!--$(window).on('load', function() {-->
                    <!--form.on('submit(downloadFile)', function(data) {-->
                        <!--$.ajax({-->
                            <!--url:"{:url('admin/Tools/download')}",-->
                            <!--data:$('#downloadFileForm').serialize(),-->
                            <!--type:'post',-->
                            <!--async: false,-->
                            <!--success:function(res) {-->
                                <!--if(res.code == 1) {-->
                                    <!--layer.alert(res.msg)-->
                                <!--} else {-->
                                <!--layer.msg(res.msg);-->
                                <!--}-->
                            <!--}-->
                        <!--})-->
                        <!--return false;-->
                    <!--});-->
                <!--});-->
            <!--});-->
        <!--</script>-->
    </div>
</body>
</html>
